package hu.dobrosi.util.io;

import java.io.IOException;

import javax.microedition.io.Connection;

public class MicroeditionConnectionConnector extends ConnectionConnector {
	Connection connection;

	public void close() throws IOException {
		super.close();
		if (connection != null) {
			connection.close();
		}
	}

	public void open(String url) throws IOException {
		super.open(url);
		connection = javax.microedition.io.Connector.open(url);
	}

	public void reopen() throws IOException {
		open(url);
	}
}
